package com.qiandw.api

import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.servlet.http.HttpServletRequest

@RestController
class TestApi {

    @RequestMapping(value = ["/", "/home"])
    fun test01(): Any {
        return "hello"
    }

    @RequestMapping(value = ["/user"])
    fun test02(): Any {
        return "user"
    }

    @RequestMapping(value = ["/admin"])
    fun test03(): Any {
        return "admin"
    }

    @RequestMapping(value = ["/any"])
    fun test04(): Any {
        return "any"
    }
}